<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Fee Refund</title>
		<link rel="stylesheet" href="../../css/styles.css" type="text/css" />
	</head>
	<script type="text/javascript">
	  
	  function showEnterForm(){
	      document.getElementById("enterDiv").style.display = "block";
	      document.getElementById("viewDiv").style.display = "none";
	  }
	  
	  function showSearchForm(){
	      document.getElementById("enterDiv").style.display = "none";
	      document.getElementById("viewDiv").style.display = "block";
	  }
	</script>
<body>
	<div id="container">
		<jsp:include page="/jsp/menu.jsp" />
		      <div style="height:420px;">
			  		<div class="path">
						<br><a href="home.htm"> Home </a>-&gt;
						<a> Account </a>-&gt;
						<a> Fee </a>-&gt;
						<a> Fee Collection</a>-&gt;
						<a href="feeRefund.htm"> Fee Refund </a>
			  		</div>
			  		<div id="leftDiv" style="margin-left: 10px;margin-top: 20px">
			   			<b>Fee Refund</b><br><br>
						<fieldset style="height:80px; width:200px;background: #FFF;">
						<table cellpadding=20>
						<tr>
							<td>
								<a href="javascript:showSearchForm()">
			                        	View Refundable Fee  
								</a>
							</td>
						</tr>
						<tr>
							<td>
			                 	<a href="javascript:showEnterForm()">
			                        	Enter Refundable Fee 
			                 	</a>
							</td>
						</tr>
						</table>
						</fieldset>
			  		</div>
				</div>
                 <div id="viewDiv" class="maininfo" style="display: none">
                 	<form:form method="POST" action="getFeeRefund.htm" commandName="feeRefund">
						<div id="searchForm">
							<div class="lable">
								Fee Refund
							</div>
							<table>
								<tr>
									<td> Search By Division </td>
									<td><form:input path="feeRefundDivision" /></td>
								</tr>
								<tr>
									<td> Search By Student Name </td>
									<td><form:input path="feeRefundStudName" /></td>
								</tr>
								<tr>
									<td>Search By Student Id :</td>
									<td><form:input path="feeRefundStudId" /></td>
								</tr>
								<tr>
									<td> Search By Refundable Fees </td>
									<td><form:input path="feeRefund" /></td>
								</tr>
								<tr>
									<td></td>
									<td><input type ="Submit" value="Search" size=10></td>
								</tr>
							</table>
						</div>
						<div id="viewTable" style="display: none">
							<div class="lable">
								Fee Refund
							</div>
							<table  cellpadding="8">
								<tr>
									<th> Division</th>
									<th> Stud.Id</th>
									<th> Stud.Name </th>
									<th> Class </th>
									<th> Category </th>
									<th> Refundable Fees </th>
									<th>Mode of Payment  </th>
									<th>Cheque Number  </th>
									<th> Date </th>
									<th> Reason </th>
									<th> Refund Fee (Y/N) </th>
								</tr>
								<tr>
									<td></td>
									<td>S144</td>
									<td>Mr.Ram Patil</td>
									<td>BE-1 year</td>
									<td>OBC</td>
									<td>25000</td>
									<td>Cheque</td>
									<td>25001</td>
									<td>12/12/2008</td>
									<td>Scholarship</td>
									<td>Y</td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
								</tr>
							</table>
						</div>
					</form:form>
				  </div>
			 	<div id="enterDiv" class="maininfo" style="display: none">
			 		<form:form method="POST" action="saveFeeRefund.htm" commandName="feeRefund">
						<div class="lable">
								Fee Refund
							</div>
							<table>
								<tr>
									<th> Division : </th>
									<td><form:input path="feeRefundDivision" /></td>
								</tr>
								<tr>
									<th> Stud.Id : </th>
									<td><form:input path="feeRefundStudId" /></td>
								</tr>
								<tr>
									<th> Stud.Name : </th>
									<td><form:input path="feeRefundStudName" /></td>
								</tr>
								<tr>
									<th> Class : </th>
									<td><form:input path="feeRefundStudClass" /></td>
								</tr>
								<tr>
									<th> Category : </th>
									<td><form:input path="feeRefundStudCategory" /></td>
								</tr>
								<tr>
									<th> Refundable Fees : </th>
									<td><form:input path="feeRefundRefundableFee" /></td>
								</tr>
								<tr>
									<th> Mode of Payment : </th>
									<td><form:select path="feeRefundPaymentMode">
											<form:option value="-">--Select--</form:option>
											<form:option value="By Cash">By Cash</form:option>
											<form:option value="By Cheque">By Cheque</form:option>
										</form:select></td>
								</tr>
								<tr>
									<th> Cheque No. : </th>
									<td><form:input path="feeRefundChequeNo" /></td>
								</tr>
								<tr>
									<th> Date : </th>
									<td><form:input path="feeRefundDate" /></td>
								</tr>
								<tr>
									<th> Reason : </th>
									<td><form:textarea path="feeRefundReason" rows="3" cols="17" /></td>
								</tr>
								<tr>
									<th> Refund Fee (Y/N) : </th>
									<td><form:input path="feeRefund" /></td>
								</tr>
								<tr>
									<th></th>
									<td><input type=submit name="submit"  value="Submit"></td>
								</tr>
							</table>
						</form:form>
					</div>
		<div id="footer">
			<jsp:include page="/jsp/footer.jsp" />
		</div>
	</div>
</body>
</html>